﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using planetExpressLib;

namespace planet_express
{
    public partial class WebForm3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //si no esta conectado, le envia a registrarse para poder reservar
            if (Session["login"] == null)
                Response.Redirect("Login.aspx");

            //Coge los datos de Reservar.aspx que ha introducido para hacer la reserva
            LabelOrigen.Text = PreviousPage.pOrigen;
            LabelDestino.Text = PreviousPage.pDestino;
            LabelAdulto.Text = PreviousPage.cantAdulto;
            LabelNinyo.Text = PreviousPage.cantNinyo;
            LabelJubi.Text = PreviousPage.cantjubilado;
            LabelPrecio.Text = PreviousPage.precioBillete;
        }

        protected void BulletedList1_Click(object sender, BulletedListEventArgs e)
        {

        }

        protected void buttonConfirmaR_Click(object sender, EventArgs e)
        {
            reservaEN res = new reservaEN();
           // res.Destino =  Convert.ToInt32(LabelDestino.Text.ToString());
        }
    }
}